package com.example.dao;

import com.example.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author : chenjianhua
 * @date : 16:54 2021/2/23
 */

@Mapper
public interface UserDao  {

    public void insert(User user);

    public void update(User user);

    public User findByName(User user);

    public User qryById(int userid);

    public void UpdatePwdById(@Param("password") String password,@Param("userid") int userid);

    public List<User> findAllUser();

    // 根据id删除
    void deleteUserById(int userid) throws Exception;


}
